package com.purchase.ml.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_payinfo")
@ApiModel(value = "SysPayinfo", description = "订单支付信息表")
public class SysPayinfo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    /**
     * 金额
     */
    @TableField(value = "money")
    @ApiModelProperty(value = "金额")
    private BigDecimal money;

    /**
     * 支付订单ID:等同于订单ID
     */
    @TableField(value = "pay_id")
    @ApiModelProperty(value = "支付订单ID")
    private Long payId;

    /**
     * 支付名称
     */
    @TableField(value = "pay_method")
    @ApiModelProperty(value = "支付名称")
    private String payMethod;

    /**
     * 状态：0：未支付；1：已支付
     */
    @TableField(value = "state")
    @ApiModelProperty(value = "状态：0：未支付；1：已支付")
    private Integer state;

    /**
     * 0: 注册费用；1 订单费用
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "0: 注册费用；1 订单费用")
    private Integer type;


    @TableField(value = "trans_id")
    @ApiModelProperty(value = "ipay88单号")
    private String transId;

    @TableField(value = "payment_id")
    @ApiModelProperty(value = "支付方式ID")
    private Integer paymentId;

    @TableField(value = "cc_name")
    @ApiModelProperty(value = "持有人")
    private String ccName;

    @TableField(value = "cc_no")
    @ApiModelProperty(value = "卡号")
    private String ccNo;

    @TableField(value = "s_bankname")
    @ApiModelProperty(value = "卡名称")
    private String sBankname;

    @TableField(value = "s_country")
    @ApiModelProperty(value = "发卡国家")
    private String sCountry;

    private static final long serialVersionUID = 1L;
}